/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.cast.teseg.modelo;

import java.io.Serializable;
import java.util.SortedMap;

/**
 *
 * @author edgarin
 */
public class Relaciones implements Serializable{
    private double capacity; // should be private
    private double weight; // should be private for good practice
    private String id;
    private int origen;
    private int destino;
    private boolean esAmigo;
    private SortedMap relacion;
    
    public Relaciones() {}
    
    public Relaciones(double weight, double capacity) {
      //  this.id = edgeCount++; // This is defined in the outer class.
        this.weight = weight;
        this.capacity = capacity;
        }
    
    public void setRelacion(String etiqueta,int org, int dest){
        this.origen= org;
        this.destino= dest;
        this.id= etiqueta;
    }

    public double getCapacity() { return capacity; }

    public String getId() { return id; }

    public double getWeight() { return weight; }

    public void setCapacity(double capacity) { this.capacity = capacity; }

    public void setWeight(double weight) { this.weight = weight; }

    public SortedMap getRelacion() { return relacion; }

    public void setRelacion(SortedMap relacion) { this.relacion = relacion; }

    public void setEsAmigo(boolean esAmigo) { this.esAmigo = esAmigo; }

    public boolean isEsAmigo() { return esAmigo; }

    public int getDestino() { return destino; }

    public int getOrigen() { return origen; }
    
}
